package cn.springcloud.fix.common.security.util;

public class SecurityUtil {

    private static String hasRole(String role) {
        // 根据配置的角色添加了 ROLE_ 前缀
        return "hasRole('ROLE_" + role + "')";
    }

    private static String hasAuthority(String authority) {
        return "hasAuthority('" + authority + "')";
    }
}
